package com.baize.minespace.service.impl;

import com.baize.minespace.mapper.LikesMapper;
import com.baize.minespace.pojo.Likes;
import com.baize.minespace.service.LikesService;
import com.baize.minespace.utils.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 点赞/收藏信息表 服务实现类
 * </p>
 *
 * @author baize
 * @since 2024-04-15
 * @version ${cfg.version}
 */
@Service
public class LikesServiceImpl extends ServiceImpl<LikesMapper, Likes> implements LikesService {
    @Override
    public Result<IPage<Likes>>selectLikesPage(Integer rows,Integer page,Likes likes){
        Page<Likes> likesPage=new Page<>(rows,page);
        IPage<Likes> likesIPage=baseMapper.selectLikesPage(likesPage, likes);
        return Result.success(likesIPage);
    }
}
